package com.lebang.mapper;

import com.lebang.domain.InviteRelease;
import com.lebang.example.InviteReleaseExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * InviteReleaseMapper继承基类
 */
@Mapper
public interface InviteReleaseMapper extends MyBatisBaseDao<InviteRelease, Integer, InviteReleaseExample> {

    InviteRelease selectReleaseByPhone(@Param("phone") String phone, @Param("inviteId") String inviteId);

    int countByMemberId(@Param("memberId") String memberId, @Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    int countTodayNum(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end);
}